#---------------------------------------------------------------------
#
# Include and run all the R code snippets from the H2O DeepLearning Vignette.
#
# The snippets are broken out into separate files so the exact same
# piece of code both shows up in the document and is run by this
# script.
#
#---------------------------------------------------------------------

#setwd("/Users/me/h2oai/documentation/h2o-3/h2o-docs/src/booklets/v2_2015/source")

#---------------------------------------------------------------------
#---------------------------------------------------------------------

rm(list=ls())

source("deeplearning/deeplearning_importfile_example.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_examplerun.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_crossval.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_inspect_model.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_predict.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_varimp.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_gridsearch.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_gridsearch_result.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_checkpoint.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_savemodel.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_loadmodel_checkpoint.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------

source("deeplearning/deeplearning_anomaly.R", echo = T)

#---------------------------------------------------------------------
#---------------------------------------------------------------------
